<div class="row1">
	<div class="error_msg" style="margin-left:15px;">
		<?php
		if (isset($error) && $error != '') {
			echo $error;
		}
		?>
	</div>
	<div class="success_msg" style="margin-left:15px;">
		<?php
		if ($this -> session -> userdata('award_success')) {
			echo $this -> session -> userdata('award_success');
			$this -> session -> unset_userdata('award_success');
		}
		?>
	</div>
    <div class="form-group col-sm-12 text-right">
    	<a href="javascript:void(0);" style=" background-color:#ff8200;text-decoration:none; color:#ffffff; padding:5px; border:0;" data-toggle="modal" data-target="#myModal_panelist">Manage Panelist</a>
    </div>
    <div class="clearfix"></div>
</div>
<div class="row1">
	<div class="table-responsive">
    	<table border="0" cellspacing="0" cellpadding="0" class="manage_table" style="width:97% !important;">
        	<tr>
            	<td width="3%">S.No.</td>
                <td width="20%">Name</td>
                <td width="19%">DissertationTitle</td>
                <td width="18%">Institutional Title</td>
                <td width="7%">Status</td>
                <td width="14%">Modified Date</td>
                <td width="12%">&nbsp;</td>
            </tr>
            <?php if(isset($applicant) && !empty($applicant)){
            	$i=1; 
            	foreach($applicant as $temp){	
            ?>
            <tr>
            	<td><?php echo $i; ?></td>
                <td><?php if(isset($temp['user_application_field1'])) {echo $temp['user_application_field1']; }?></td>
                <td></td>
                <td><?php if(isset($temp['user_application_application_status'])) {echo $temp['user_application_application_status']; }?></td>
                <td><td><?php if(isset($temp['user_application_modified_date'])) {echo $temp['user_application_modified_date']; }?></td></td>
                <td><a href="<?php echo BASE_URL.'/'.$this->admin.'/admin_score?award_id='.$temp['user_application_award_id']; ?>">Edit Createria value</a></td>
                <td><a href="#">Delete</a></td>
            </tr>
			<?php $i++;}}else{ echo '<tr><td colspan="7">No record found</td></tr>';}?>
    	</table>
	</div>
	<div class="clearfix space30"></div>
</div>

<!-- panelist choice menue -->
<div class="modal fade" id="myModal_panelist" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h4 class="modal-title" id="myModalLabel">Award Management | Panelist</h4>
			</div>
			<div class="modal-body">
				<div class="table-responsive">
					<?php echo form_open(BASE_URL . '/' . $this -> admin . '/edit_award', array('id' => 'award_p_form', 'method' => 'post'));?>
					<table id="panelist_listing" class="table table-striped" cellspacing="0" width="100%">
						<thead>
							<tr>
								<td>&nbsp;</td>
								<td><b>User Name</b></td> 
								<td><b>Full Name</b></td>
								<td><b>Affiliation</b></td>
								<td><b>Email</b></td>
								<td><b>Contact Number</b></td>
							</tr>
						</thead>

						<tbody>
							<?php if(isset($panelist_data) && !empty($panelist_data)){
							foreach($panelist_data as $pan){
								if(isset($award_panelist_chief))
								{
									if($award_panelist_chief[0]['award_panelist_admin_id'] == $pan['admin_id'])
									continue;
								}
							?>
							<tr>
								<td><input type="checkbox" <?php if(isset($award_panelist_ids) && !empty($award_panelist_ids) && in_array($pan['admin_id'], $award_panelist_ids)){ echo 'checked';} ?> value="<?php echo $pan['admin_id']; ?>" name="panelist[]"/></td>
								<td><?php echo $pan['admin_fullname']; ?></td>
								<td><?php echo $pan['admin_fullname']; ?></td>
								<td><?php echo $pan['admin_affiliation']; ?></td>
								<td><?php echo $pan['admin_email']; ?></td>
								<td><?php echo $pan['admin_contact_number']; ?></td>
							</tr>
							<?php }}else{ echo '<tr><td colspan="6">No record found</td></tr>';}?>
						</tbody>
					</table>
					<input type="hidden" name="select_award_id" value="<?php if(isset($post_value[0]['award_id']))echo $post_value[0]['award_id'];else echo set_value('select_award_id'); ?>" />
					<input type="hidden" name="edit_type" value="panelist" />
					<button type="button" class="btn btn-primary" id="award_p_btn">
						Save & Continue
					</button>
					<?php echo form_close();?>
				</div>
			</div>

		</div>
	</div>
</div>